<?php //debug($tips)?>
<?php $tip_settings = Configure::read('Tip'); ?>
<div class="tips tips-index">
	<h1><?php echo $tip_settings['header']; ?></h1>
	
	<p class="intro">
		<?php echo $tip_settings['intro']; ?>
	</p>
	<p class="add-tip"><?php echo $html->link(__('New Tip', true), array('action'=>'add'),array('class'=>'button-link')); ?></p>
	<div class="float-break">
		<?php
		$i = 0;
		foreach ($tips as $tip):
			$class = "";
			if ($i++ % 2 == 0) {
				$class = ' tip-alt';
			}
		?>
		<?php echo $this->element('../tips/view', array("tip" => $tip, "class" => $class)); ?>
		
	<?php endforeach; ?>
	</div>
	<p class="add-tip"><?php echo $html->link(__('New Tip', true), array('action'=>'add'),array('class'=>'button-link')); ?></p>
	
	<?php echo $this->element('paging') ?>

	
</div>
